﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ERPStudio;
using System.Data.SqlClient;

namespace ESRP
{
    public partial class GetValueFrm : FrmCard
    {
        public String RetValue
        {
            get { return ValueTB.Text; }
            set { ValueTB.Text = value; }
        }


        public GetValueFrm(String vlabel,String defaultVal)
        {
            
            InitializeComponent();
            TextL.Text = vlabel;
            RetValue = defaultVal;
            ReadOnly = true;
        }

        private void tableLayoutPanel1_Paint(object sender, PaintEventArgs e)
        {

        }

        override public void Salvare(object sender, EventArgs args)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.Close();
        }
    }
}
